You are here: Symbol Reference > Dew Namespace > Dew.Stats Namespace > Dew.Stats.Units Namespace > Classes > Statistics Class > Statistics Methods > Statistics.MeanH Method
Dew Stats for .NET
ContentsIndexHome
PreviousUpNext
Statistics.MeanH Method

Harmonic mean.

Syntax
C#
Visual Basic
public static double MeanH([In] TVec Data);
Parameters 
Description 
[In] TVec Data 
Data. An exception is raised if Data is complex. 

the harmonic mean of given values.

Calculate the harmonic mean for given values.

using Dew.Math; using Dew.Stats; using Dew.Stats.Units; namespace Dew.Examples { private void Example() { Vector a = new Vector(0); a.SetIt(false, new double[] {2,3,5,4}); double MH = Statistics.MeanH(a); // MH = 3.11688311688312 } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!